package com.dragonsky.shop.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragonsky.shop.product.entity.BasicEntity;
import java.io.Serializable;
import java.math.BigDecimal;

import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * <p>
 * 产品表
 * </p>
 *
 * @author dragon
 * @since 2025-03-22 00:16:00
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sys_product")
public class Product extends BasicEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 产品主键
     */
    @TableId(value = "product_id", type = IdType.AUTO)
    private Integer productId;

    /**
     * 产品名称
     */
    @TableField("product_name")
    private String productName;

    /**
     * 产品库存
     */
    @TableField("product_stock")
    private Integer productStock;

    /**
     * 产品价格
     */
    @TableField("product_price")
    private BigDecimal productPrice;

    /**
     * 状态（1正常 0禁用）
     */
    @TableField("status")
    private Byte status;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    public static final String PRODUCT_ID = "product_id";

    public static final String PRODUCT_NAME = "product_name";

    public static final String PRODUCT_STOCK = "product_stock";

    public static final String PRODUCT_PRICE = "product_price";

    public static final String STATUS = "status";

    public static final String REMARK = "remark";
}
